package com.imc.platform.base.campusbulletin.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.imc.platform.base.campusbulletin.dao.ICampusBulletinMapper;
import com.imc.platform.base.campusbulletin.service.ICampusBulletinService;
import com.imc.platform.base.notice.pojo.Notice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 类描述:
 * 开发者:SJC
 * 创建时间:2018-8-15 19:30:36
 */
@Service
public class CampusBulletinServiceImpl implements ICampusBulletinService {
    @Autowired
    ICampusBulletinMapper iCampusBulletinMapper;

    @Override
    public PageInfo <Notice> queryCampusBulletin(int pageNum, int pageSize) {
        PageHelper.startPage(pageNum, pageSize, true);
        PageInfo d = new PageInfo <>(iCampusBulletinMapper.queryCampusBulletin());
        return d;
    }
}
